module.exports = {
  vite: false,
  define: {
    env: process.env.NODE_ENV
  },
  polyfill: 'usage',
  plugins: [
    [
      'build-plugin-fusion',
      {
        uniteBaseComponent: '@alife/next'
      },
      'build-plugin-moment-locales',
      {
        locales: ['zh-cn']
      }
    ]
  ],
  minify: {
    type: 'esbuild',
    options: {
      target: 'es2016'
    }
  },
  modeConfig: {
    local: {
      define: {},
      vendor: false,
      plugins: []
    },
    test: {
      define: {},
      vendor: true,
      plugins: []
    },
    prod: {
      define: {},
      vendor: true,
      plugins: []
    }
  },
  hash: 'hash',
  remoteRuntime: false
}
